
package arboleda;
/*
*Universidad del Valle de Guatemala
* Roger Artemio Diaz Fuentes
* 12176
* Juan de Dios Chivalan Rojas
* 12175
* Este es la clase NodeTree que la utiliza el arbol 2-3
* 
 */
public class TreeNode
{

    public TreeNode()
    {
        smallKey = -1001;
        bigKey = -1001;
        right = null;
        left = null;
        middle = null;
        parent = null;
    }
    /**
     * This method returns true if the node is empty
     * @return true if node is empty false otherwise
     */
    public boolean isEmpty()
    {
        if (this.smallKey == -1001 && this.bigKey == -1001)
            return true;
        else 
            return false;
    }
    //Data Fields
    public TreeNode left;
    public TreeNode right;
    public TreeNode middle;
    public TreeNode parent;
    public int smallKey;
    public int bigKey;
    //public final int DEFAULT_VALUE = -1001
}
